<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
        <title><ui:insert name="titulo">#{msg.titulo_aplicacao}</ui:insert></title>
        <h:outputStylesheet library="css" name="estilo.css" />
	<h:outputScript library="script" name="funcoes.js"/> 
    </h:head>
    <h:body>
        <div id="container">

	    <div id="logotipo">
                <h:graphicImage library="imagens" name="logotipo.png" />
            </div>

            <div id="barra_menu">
		<ui:insert name="barra_menu">
		    <ui:include src="/restrito/menu_sistema.xhtml"/>                   
		</ui:insert>
	    </div>

	    <div id="breadcrumb">
		<table width="100%">
		    <tr>
			<td style="width: 80%" align="left">
			    <ui:insert name="breadcrumb"/>
			</td>
			<td style="width: 20%" align="right">
			    <h:panelGroup>
				<h:outputText id="otUsuarioLogado2" value="#{loginUsuario.usuarioLogado.login}" styleClass="usuario-logado"/>
			    </h:panelGroup>
			</td>
		    </tr>
		</table>
	    </div>

	    <div id="messages" >
                <p:messages id="messages" closable="true" autoUpdate="true"/> 
	    </div>

            <div id="corpo">
		<f:view encoding="ISO-8859-1">
		    <ui:insert name="corpo" />
		</f:view>
            </div>

        </div>
    </h:body>
</html>